#ifndef __AUDIO_DECODER_H
#define __AUDIO_DECODER_H
#include "Com_Debug.h"
#include "esp_audio_dec.h"
#include "esp_opus_dec.h"
#include "freertos/ringbuf.h"
#include "bsp_sound.h"

typedef struct
{
    bool is_running;

    RingbufHandle_t input;
} my_decoder_t;

extern my_decoder_t my_decoder;

void audio_decoder_init(void);
void audio_decoder_start(RingbufHandle_t in_buffer);
void audio_decoder_write(char *data, int size);
;
#endif
